package org.zk.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 说明:新闻资讯实体
 *
 * @姚文斌
 * @create 2019-11-18 下午 4:47
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Topic implements Serializable {
    private int topicid;
    private String title;
    private String pic;
    private String content;
    private String writetime;
    private String updatetime;
    private int state;
    private int visit;
    private Admin admin;
    private Board board;

    public Topic(String title) {
        this.title = title;
    }

    public Topic(String title, String content, Admin admin, Board board) {
        this.title = title;
        this.content = content;
        this.admin = admin;
        this.board = board;
    }
}
